package com.rightsidetech.mall.dto.response.gift;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.rightsidetech.mall.dto.request.DetailSpecsReq;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@JsonIgnoreProperties(value={"specsJson"})
public class GiftDetailResp implements Serializable {

    private Long id;

    @ApiModelProperty("基础商品id")
    private Long baseInfoId;

    @ApiModelProperty("价格")
    private BigDecimal price;

    @ApiModelProperty("划线价")
    private BigDecimal underlinedPrice;

    @ApiModelProperty("商品名称")
    private String commodityName;

    @ApiModelProperty("品牌id")
    private Long brandId;

    @ApiModelProperty("品牌名称")
    private String brandName;

    @ApiModelProperty("分类id")
    private Long typeId;

    private List<Long> typeIds;

    @ApiModelProperty("分类名称")
    private String typeName;

    @ApiModelProperty("赠品类型 0-邮寄 1-到店")
    private Byte giftType;

    @ApiModelProperty("封面图")
    private String cover;

    @ApiModelProperty("规格")
    private DetailSpecsReq specs;

    @ApiModelProperty("商品编码")
    private String code;

    private String specsJson;

}
